package com.chixing.day03_oop;

public class PhoneTest {
    public static void main(String[] args) {
        //实例化两个 无参或有参

        //无参
        Phone phone1 = new Phone();
        phone1.setpHoneName("华为");
        phone1.setPhoneSize("5.6");
        phone1.setPhonePrice(3999);
        phone1.setPhoneColor("白色");


        //有参
        Phone phone2 = new Phone("小米","5.5",2999,"粉色");

        System.out.println("手机名:" + phone1.getphoneName() + "手机尺寸:" + phone1.getPhoneSize() + "手机价格:" + phone1.getPhonePrice() + "手机颜色:" + phone1.getPhoneColor());
        System.out.println("手机名:" + phone2.getphoneName() + "手机尺寸:" + phone2.getPhoneSize() + "手机价格:" + phone2.getPhonePrice() + "手机颜色:" + phone2.getPhoneColor());


    }
}
